package com.cskaoyan.mall.model.vo.mall;


import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/*
 * "reply":{"content":"你买单吧","time":"2020-08-05 17:34:07"}},
 */
public class GetGoodsMsgReplyVO {
    private String content;
    private Date time;
//    private String time;
    public GetGoodsMsgReplyVO() {
        content = null;
        time = null;
    }
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) throws ParseException {
        SimpleDateFormat form = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String datetime = form.format(time);
//        this.time = datetime;
        this.time = form.parse(datetime);
    }
}
